package cn.pzaily.orange.core.utils;

/**
 * @PackageName: cn.pzaily.common.utils
 * @Description:
 * @Author: Pang
 * @Date: 2021-03-07 14:14
 */
public class ObjectUtils {

    /**
     * 判断对象为空
     *
     * @param param
     * @return
     */
    public static boolean isNull(Object param) {
        return null == param;
    }

    /**
     * 判断对象不为空
     *
     * @param param
     * @return
     */
    public static boolean isNotNull(Object param) {
        return !isNull(param);
    }

    /**
     * 判断对象数组为空
     *
     * @param argArray
     * @return
     */
    public static boolean isEmpty(Object[] argArray) {
        return argArray == null || argArray.length == 0;
    }

    /**
     * 判断对象数据不为空
     *
     * @param argArray
     * @return
     */
    public static boolean isNotEmpty(Object[] argArray) {
        return !isEmpty(argArray);
    }
}
